package com.sf.controller.cms;

import com.jfinal.core.Controller;
import org.apache.shiro.SecurityUtils;

/**
 * CMS��½����֤�봦��
 * Created by snowfigure on 2015/4/11.
 */
public class CmsLoginController  extends Controller {
    public void index()
    {
        if ( SecurityUtils.getSubject().isAuthenticated() )
        {
            redirect( "/cms/main" ); // ��¼״̬����ת��ҳ��
        }
        else
        {
            render( "/WEB-INF/static/cms/login.html" ); // δ��¼����ת����¼ҳ��
        }
    }
}
